﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wFrmLoginExtranet.aspx.cs" Inherits="Crosland.Automotriz.Web.Extranet.wFrmLoginExtranet" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Extranet - Login</title>
  
</head>
 <script type="text/javascript">
    // <![CDATA[

     function ShowPopupLogin() {
         PopupLogin.Show();
     }

     function ShowError() {
         popupCamposVacios.Show();
     }

    // ]]> 
    </script>
<body>
    <form id="formLogin" runat="server">

    <dx:ASPxPopupControl ID="PopupLogin" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupLogin" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    

                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    

                    <loadingpanelimage url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    

                    </loadingpanelimage>
                    

                    <HeaderStyle>

                    <paddings paddingleft="7px" />
                    

                    </HeaderStyle>
                    

                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table align="center">
                           
                                <tr>
                                    
                                  
                                        <td align="center" style="width:100%;">
                                          <dx:ASPxLabel ID="lblMsj" runat="server">
                                            </dx:ASPxLabel>
                                        </td>
                                    
                                </tr>
                                </table>
                           
                        <table width="100%">
                        <tr>
                        <td align="center">
                        

                        
                            &nbsp;<dx:ASPxButton ID="ASPxButton4" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" Height="30px" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="100px">
                                <ClientSideEvents Click="function(s, e) {
	PopupLogin.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        

                        
                            </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>

                </dx:ASPxPopupControl>

    <div class="top-content">
        <div class="top-sistema">
            <div class="top-item">
                <img src="../Images/flecha.gif" alt="Usuario" /></div>
            <div class="top-item">
                Sistema:</div>
            <div class="top-item">
                <strong>Extranet Crosland</strong></div>
            <div class="top-item-r">
                <img src="../Images/logout.gif" alt="Logout" /></div>
            <div class="top-item-r">
                <strong>ACCESO AL SISTEMA</strong></div>
        </div>
        <div id="menu">
            <ul style="float: right; margin-right: 15px">
                <li>
                    <asp:LinkButton ID="lblRecuperarClave" runat="server" OnClick="lblRecuperarClave_Click"><span><strong>Recuperar Clave &raquo;</strong></span></asp:LinkButton></li>
            </ul>
        </div>
    </div>
    <div style="clear: both">
    </div>
    <div class="main-login-extranet">
        <div class="login-content-extranet">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td class="login-content-left-extranet">
                        <div class="login-titulo-extranet">
                            Extranet Crosland - Automotriz
                        </div>
                        <div class="login-texto-extranet">
                            La Extranet del negocio Automotriz del grupo Crosland, permite el acceso a la información
                            existente en nuestros sistemas como parte del servicio que queremos proporcionar
                            a nuestros clientes afiliados.
                            <br />
                            <br />
                        </div>
                    </td>
                    <td class="login-content-separator-extranet">
                    </td>
                    <td class="login-content-center-extranet">
                        <div class="login-logo-extranet" align="center" style="margin-bottom: 10px">
                            <img src="../Images/logo.png" alt="logo" />
                        </div>
                        <asp:Panel ID="pnlMensaje" runat="server" CssClass="content-message">
                            <asp:Label ID="lblMensaje" runat="server" Text="Ingrese su usuario y password"></asp:Label>
                        </asp:Panel>
                        <asp:Panel runat="server" ID="pnlLogin">
                            <table cellpadding="0" cellspacing="0" border="0" class="tb-login-extranet">
                                <tr>
                                    <td class="filas">
                                        Usuario:
                                    </td>
                                    <td class="filas">
                                        <dx:ASPxTextBox ID="txtUsuario" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                               
                                <tr>
                                    <td class="filas">
                                        Password:
                                    </td>
                                    <td class="filas">
                                        <dx:ASPxTextBox ID="txtPassword" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" Password="True" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                               
                                <tr>
                                    <td class="filas">
                                        &nbsp;
                                    </td>
                                    <td class="filas">
                                        <dx:ASPxButton ID="btnLogin" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Ingresar" onclick="btnLogin_Click" Height="30px" >
                                            <Image Url="~/Images/candado.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel runat="server" ID="pnlRecuperar" Visible="false">
                            <table cellpadding="0" cellspacing="0" border="0" class="tb-login" width="100%">
                                <tr>
                                    <td class="tb-login-label-extranet filas">
                                        Email:
                                    </td>
                                    <td class="filas">
                                        <dx:ASPxTextBox ID="txtEmail" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                        <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                                            Display="Dynamic" ErrorMessage="Email inválido" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                                        </asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                            </table>
                            <table width="100%">
                                <tr>
                                    <td class="filas btns" align="right">
                                        <dx:ASPxButton ID="btnRecupera" runat="server" Text="Recuperar" OnClick="btnRecuperar_Click"
                                            Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Height="30px">
                                            <Image Url="~/Images/email2.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td class="filas btns" align="left">
                                        <dx:ASPxButton ID="btnCancela" runat="server" Text="Cancelar" OnClick="btnCancelar_Click"
                                            Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Height="30px">
                                            <Image Url="~/Images/logout.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel runat="server" ID="pnlAcceso" Visible="false">
                            <table cellpadding="0" cellspacing="0" border="0" class="tb-login">
                                <tr>
                                    <td class="tb-login-label1-extranet">
                                        Razón Social:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRazonSocial" runat="server" Width="220px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvRazonSocial" runat="server" Display="Dynamic"
                                            ControlToValidate="txtRazonSocial" ErrorMessage="Ingrese">
                                        </asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tb-login-label1-extranet">
                                        RUC:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRuc" runat="server" Width="220px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvRuc" runat="server" Display="Dynamic" ControlToValidate="txtRuc"
                                            ErrorMessage="Ingrese">
                                        </asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tb-login-label1-extranet">
                                        Email:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEmailAcceso" runat="server" Width="220px"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="revEmailValido" runat="server" ControlToValidate="txtEmailAcceso"
                                            Display="Dynamic" ErrorMessage="Email inválido" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                                        </asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="rfvEmailAcceso" runat="server" Display="Dynamic"
                                            ControlToValidate="txtEmailAcceso" ErrorMessage="Ingrese">
                                        </asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tb-login-label1-extranet">
                                        Comentario:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtComentario" runat="server" Width="220px" Style="height: 39px"
                                            TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="tblogin-boton-extranet">
                                        <asp:Button ID="btnEnviar" runat="server" Text="Enviar" OnClick="btnEnviar_Click" />
                                        <asp:Button ID="btnCancelarAcceso" runat="server" Text="Cancelar" CausesValidation="false"
                                            OnClick="btnCancelarAcceso_Click" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel runat="server" ID="pnlResultadoAcceso" Visible="false">
                            <table cellpadding="0" cellspacing="0" border="0" class="tb-login-extranet">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblResultadoAcceso" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="clear: both;">
    </div>
    <div class="footer-content" style="position: absolute; bottom: 0">
        <p style="float: left">
            &copy; 2011 <a href="#">Grupo Crosland</a>, Todos los Derechos Reservados&reg;</p>
        <p style="float: right">
            <a>Departamento de Sistemas</a></p>
    </div>
    </form>
</body>
</html>
